<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: D:/Home/MFF/1-Mgr/projekt/pepr3d/src/ui/SidePane.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_side_pane_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">SidePane.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;commands/CommandManager.h&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;geometry/ColorManager.h&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;geometry/Geometry.h&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;peprimgui.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepepr3d.html">pepr3d</a> {</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">class </span>MainApplication;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html">   13</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpepr3d_1_1_side_pane.html">SidePane</a> {</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="classpepr3d_1_1_side_pane.html">SidePane</a>(<a class="code" href="classpepr3d_1_1_main_application.html">MainApplication</a>&amp; app) : mApplication(app) {}</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#a0d9965d55d1b631ec97a98698bbcd67b">   18</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a0d9965d55d1b631ec97a98698bbcd67b">getWidth</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <span class="keywordflow">return</span> mWidth;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    }</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#a4418b3cd4e7c4e584d91f826d1e944b9">   23</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a4418b3cd4e7c4e584d91f826d1e944b9">setWidth</a>(<span class="keywordtype">float</span> width) {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        mWidth = width;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    }</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a1ff5531d18ef9a1ad2149e59661c8d77">draw</a>();</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a41774f95d968169688441c34a7b0e21b">resize</a>();</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#ad52b2636cb54b25ed796ad8bae54a535">drawText</a>(std::string text);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a28107c4c4448600ef6f07b5c22928b22">drawButton</a>(std::string label);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a6fcb108b3358ec5b16e08359440d2e83">drawColoredButton</a>(std::string label, <span class="keyword">const</span> ci::ColorA color, <span class="keyword">const</span> <span class="keywordtype">float</span> borderThickness = 3.0f);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#ac9c2d073fb25be1145899accd17813fa">drawSeparator</a>();</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a33641b0bade39edf124bc6c23a6271a0">drawColorPalette</a>(<span class="keyword">const</span> std::string&amp; label = <span class="stringliteral">&quot;Color Palette&quot;</span>, <span class="keywordtype">bool</span> isEditable = <span class="keyword">false</span>);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Callback&gt;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#aa585367929e09354f49e0740571f475b">   51</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#aa585367929e09354f49e0740571f475b">drawCheckbox</a>(std::string label, <span class="keywordtype">bool</span> isChecked, Callback onChanged) {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordflow">if</span>(ImGui::Checkbox(label.c_str(), &amp;isChecked)) {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            onChanged(isChecked);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#a65b9063ac82c6249eef2c1a7586a0cfb">   58</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a65b9063ac82c6249eef2c1a7586a0cfb">drawCheckbox</a>(std::string label, <span class="keywordtype">bool</span>&amp; isChecked) {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        ImGui::Checkbox(label.c_str(), &amp;isChecked);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    }</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#ae31dbf3dc9f11c3a4a2721c59ca043df">   63</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane.html#ae31dbf3dc9f11c3a4a2721c59ca043df">drawIntDragger</a>(std::string label, <span class="keywordtype">int</span>&amp; value, <span class="keywordtype">float</span> dragSpeed, <span class="keywordtype">int</span> minValue, <span class="keywordtype">int</span> maxValue,</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                        std::string displayFormat, <span class="keywordtype">float</span> width) {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        ImGui::PushItemWidth(width);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">bool</span> hasChanged =</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            ImGui::DragInt(label.c_str(), &amp;value, dragSpeed, minValue, maxValue, displayFormat.c_str());</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        ImGui::PopItemWidth();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">return</span> hasChanged;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#a284ec9b8a323a0b4bf01fddb8551d4b2">   73</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a284ec9b8a323a0b4bf01fddb8551d4b2">drawVec3Dragger</a>(std::string label, glm::vec3&amp; value, <span class="keywordtype">float</span> dragSpeed, <span class="keywordtype">float</span> minValue, <span class="keywordtype">float</span> maxValue,</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                         std::string displayFormat, <span class="keywordtype">float</span> width) {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        ImGui::PushItemWidth(width);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">bool</span> hasChanged =</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            ImGui::DragFloat3(label.c_str(), &amp;value[0], dragSpeed, minValue, maxValue, displayFormat.c_str());</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        ImGui::PopItemWidth();</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">return</span> hasChanged;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane.html#a67b9ac3cbdcbae622df47cf7fa7fe0d0">   83</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a67b9ac3cbdcbae622df47cf7fa7fe0d0">drawFloatDragger</a>(std::string label, <span class="keywordtype">float</span>&amp; value, <span class="keywordtype">float</span> dragSpeed, <span class="keywordtype">float</span> minValue, <span class="keywordtype">float</span> maxValue,</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                          std::string displayFormat, <span class="keywordtype">float</span> width) {</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        ImGui::PushItemWidth(width);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">bool</span> hasChanged =</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            ImGui::DragFloat(label.c_str(), &amp;value, dragSpeed, minValue, maxValue, displayFormat.c_str());</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        ImGui::PopItemWidth();</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordflow">return</span> hasChanged;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#ad2aec2dd5fb2b89689af2478547c58c5">drawTooltipOnHover</a>(<span class="keyword">const</span> std::string&amp; label, <span class="keyword">const</span> std::string&amp; shortcut = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                            <span class="keyword">const</span> std::string&amp; description = <span class="stringliteral">&quot;&quot;</span>, <span class="keyword">const</span> std::string&amp; disabled = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane_1_1_category.html">   98</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html">Category</a> {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        std::string mCaption;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordtype">bool</span> mIsOpen;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html#a774041d63e1e1c39dd22f5f221fc6797">drawHeader</a>(<a class="code" href="classpepr3d_1_1_side_pane.html">SidePane</a>&amp; sidePane);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;       <span class="keyword">public</span>:</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keyword">explicit</span> <a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html">Category</a>(<span class="keyword">const</span> std::string&amp; caption, <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html#aac016fcb205b58448834ba7ccb950b05">isOpen</a> = <span class="keyword">false</span>) : mCaption(caption), mIsOpen(<a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html#aac016fcb205b58448834ba7ccb950b05">isOpen</a>) {}</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane_1_1_category.html#aac016fcb205b58448834ba7ccb950b05">  109</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html#aac016fcb205b58448834ba7ccb950b05">isOpen</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <span class="keywordflow">return</span> mIsOpen;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> DrawIns<span class="keywordtype">id</span>eFunction&gt;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_side_pane_1_1_category.html#a3f0786593b21a0428b8e9b8772f352ef">  115</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html#a3f0786593b21a0428b8e9b8772f352ef">draw</a>(<a class="code" href="classpepr3d_1_1_side_pane.html">SidePane</a>&amp; sidePane, DrawInsideFunction drawInside) {</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            ImGui::PushID(mCaption.c_str());</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <a class="code" href="classpepr3d_1_1_side_pane_1_1_category.html#a774041d63e1e1c39dd22f5f221fc6797">drawHeader</a>(sidePane);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <span class="keywordflow">if</span>(mIsOpen) {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 10.0f);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                drawInside();</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            }</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            sidePane.<a class="code" href="classpepr3d_1_1_side_pane.html#ac9c2d073fb25be1145899accd17813fa">drawSeparator</a>();</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            ImGui::PopID();</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    };</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;   <span class="keyword">private</span>:</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <a class="code" href="classpepr3d_1_1_main_application.html">MainApplication</a>&amp; mApplication;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordtype">float</span> mWidth = 250.0f;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a661999aa5735d68c9ac36fa07722ed5b">drawColorPaletteAddRemoveButtons</a>(<a class="code" href="classpepr3d_1_1_color_manager.html">ColorManager</a>&amp; colorManager, <a class="code" href="classpepr3d_1_1_command_manager.html">CommandManager&lt;Geometry&gt;</a>&amp; commandManager);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_side_pane.html#a38039d44d10317e493730141b058d193">drawColorPaletteColorBoxes</a>(<a class="code" href="classpepr3d_1_1_color_manager.html">ColorManager</a>&amp; colorManager, <a class="code" href="classpepr3d_1_1_command_manager.html">CommandManager&lt;Geometry&gt;</a>&amp; commandManager,</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                                    <span class="keywordtype">bool</span> isEditable);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;};</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;}  <span class="comment">// namespace pepr3d</span></div><div class="ttc" id="classpepr3d_1_1_side_pane_1_1_category_html_a774041d63e1e1c39dd22f5f221fc6797"><div class="ttname"><a href="classpepr3d_1_1_side_pane_1_1_category.html#a774041d63e1e1c39dd22f5f221fc6797">pepr3d::SidePane::Category::drawHeader</a></div><div class="ttdeci">void drawHeader(SidePane &amp;sidePane)</div><div class="ttdoc">Draws the clickable header of the Category.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:333</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a38039d44d10317e493730141b058d193"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a38039d44d10317e493730141b058d193">pepr3d::SidePane::drawColorPaletteColorBoxes</a></div><div class="ttdeci">void drawColorPaletteColorBoxes(ColorManager &amp;colorManager, CommandManager&lt; Geometry &gt; &amp;commandManager, bool isEditable)</div><div class="ttdoc">Draws the color boxes of a color palette.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:190</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a0d9965d55d1b631ec97a98698bbcd67b"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a0d9965d55d1b631ec97a98698bbcd67b">pepr3d::SidePane::getWidth</a></div><div class="ttdeci">float getWidth() const</div><div class="ttdoc">Returns the width.</div><div class="ttdef"><b>Definition:</b> SidePane.h:18</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a41774f95d968169688441c34a7b0e21b"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a41774f95d968169688441c34a7b0e21b">pepr3d::SidePane::resize</a></div><div class="ttdeci">void resize()</div><div class="ttdoc">Called when the SidePane should recalculate its size.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:70</div></div>
<div class="ttc" id="namespacepepr3d_html"><div class="ttname"><a href="namespacepepr3d.html">pepr3d</a></div><div class="ttdoc">Fix for CGAL bugs in polygon with holes verification Contained in CGAL PR #3688, likely to be in 4....</div><div class="ttdef"><b>Definition:</b> CmdColorManager.h:9</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_aa585367929e09354f49e0740571f475b"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#aa585367929e09354f49e0740571f475b">pepr3d::SidePane::drawCheckbox</a></div><div class="ttdeci">void drawCheckbox(std::string label, bool isChecked, Callback onChanged)</div><div class="ttdoc">Draws a checkbox with a callback called when the value is changed.</div><div class="ttdef"><b>Definition:</b> SidePane.h:51</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_ac9c2d073fb25be1145899accd17813fa"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#ac9c2d073fb25be1145899accd17813fa">pepr3d::SidePane::drawSeparator</a></div><div class="ttdeci">void drawSeparator()</div><div class="ttdoc">Draws a horizontal separator.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:95</div></div>
<div class="ttc" id="classpepr3d_1_1_command_manager_html"><div class="ttname"><a href="classpepr3d_1_1_command_manager.html">pepr3d::CommandManager</a></div><div class="ttdoc">CommandManager handles all undoable operations on target in the form of commands See.</div><div class="ttdef"><b>Definition:</b> CommandManager.h:15</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_1_1_category_html"><div class="ttname"><a href="classpepr3d_1_1_side_pane_1_1_category.html">pepr3d::SidePane::Category</a></div><div class="ttdoc">A category of a SidePane that can be opened and closed by a user.</div><div class="ttdef"><b>Definition:</b> SidePane.h:98</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a28107c4c4448600ef6f07b5c22928b22"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a28107c4c4448600ef6f07b5c22928b22">pepr3d::SidePane::drawButton</a></div><div class="ttdeci">bool drawButton(std::string label)</div><div class="ttdoc">Draws a button with a maximum available width.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:79</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a661999aa5735d68c9ac36fa07722ed5b"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a661999aa5735d68c9ac36fa07722ed5b">pepr3d::SidePane::drawColorPaletteAddRemoveButtons</a></div><div class="ttdeci">void drawColorPaletteAddRemoveButtons(ColorManager &amp;colorManager, CommandManager&lt; Geometry &gt; &amp;commandManager)</div><div class="ttdoc">Draws add &amp; remove buttons of an editable color palette.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:140</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a1ff5531d18ef9a1ad2149e59661c8d77"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a1ff5531d18ef9a1ad2149e59661c8d77">pepr3d::SidePane::draw</a></div><div class="ttdeci">void draw()</div><div class="ttdoc">Draws the pane using ImGui.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:9</div></div>
<div class="ttc" id="classpepr3d_1_1_color_manager_html"><div class="ttname"><a href="classpepr3d_1_1_color_manager.html">pepr3d::ColorManager</a></div><div class="ttdoc">Represents a color palette, i.e., all colors and a selected active color.</div><div class="ttdef"><b>Definition:</b> ColorManager.h:16</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a284ec9b8a323a0b4bf01fddb8551d4b2"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a284ec9b8a323a0b4bf01fddb8551d4b2">pepr3d::SidePane::drawVec3Dragger</a></div><div class="ttdeci">bool drawVec3Dragger(std::string label, glm::vec3 &amp;value, float dragSpeed, float minValue, float maxValue, std::string displayFormat, float width)</div><div class="ttdoc">Draws an ImGui dragger (slider) for an glm::vec3 value.</div><div class="ttdef"><b>Definition:</b> SidePane.h:73</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a67b9ac3cbdcbae622df47cf7fa7fe0d0"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a67b9ac3cbdcbae622df47cf7fa7fe0d0">pepr3d::SidePane::drawFloatDragger</a></div><div class="ttdeci">bool drawFloatDragger(std::string label, float &amp;value, float dragSpeed, float minValue, float maxValue, std::string displayFormat, float width)</div><div class="ttdoc">Draws an ImGui dragger (slider) for an float value.</div><div class="ttdef"><b>Definition:</b> SidePane.h:83</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_1_1_category_html_aac016fcb205b58448834ba7ccb950b05"><div class="ttname"><a href="classpepr3d_1_1_side_pane_1_1_category.html#aac016fcb205b58448834ba7ccb950b05">pepr3d::SidePane::Category::isOpen</a></div><div class="ttdeci">bool isOpen() const</div><div class="ttdoc">Returns true if the Category is open.</div><div class="ttdef"><b>Definition:</b> SidePane.h:109</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_ad2aec2dd5fb2b89689af2478547c58c5"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#ad2aec2dd5fb2b89689af2478547c58c5">pepr3d::SidePane::drawTooltipOnHover</a></div><div class="ttdeci">void drawTooltipOnHover(const std::string &amp;label, const std::string &amp;shortcut=&quot;&quot;, const std::string &amp;description=&quot;&quot;, const std::string &amp;disabled=&quot;&quot;)</div><div class="ttdoc">Draws a tooltip if the previous ImGui element is hovered. The tooltip is drawn on the left of the Sid...</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:325</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_1_1_category_html_a3f0786593b21a0428b8e9b8772f352ef"><div class="ttname"><a href="classpepr3d_1_1_side_pane_1_1_category.html#a3f0786593b21a0428b8e9b8772f352ef">pepr3d::SidePane::Category::draw</a></div><div class="ttdeci">void draw(SidePane &amp;sidePane, DrawInsideFunction drawInside)</div><div class="ttdoc">Draws the header and the inside (using the provided function) is the Category is open.</div><div class="ttdef"><b>Definition:</b> SidePane.h:115</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a4418b3cd4e7c4e584d91f826d1e944b9"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a4418b3cd4e7c4e584d91f826d1e944b9">pepr3d::SidePane::setWidth</a></div><div class="ttdeci">void setWidth(float width)</div><div class="ttdoc">Sets the width.</div><div class="ttdef"><b>Definition:</b> SidePane.h:23</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a6fcb108b3358ec5b16e08359440d2e83"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a6fcb108b3358ec5b16e08359440d2e83">pepr3d::SidePane::drawColoredButton</a></div><div class="ttdeci">bool drawColoredButton(std::string label, const ci::ColorA color, const float borderThickness=3.0f)</div><div class="ttdoc">Draws a button with a colored highlight.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:86</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_ae31dbf3dc9f11c3a4a2721c59ca043df"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#ae31dbf3dc9f11c3a4a2721c59ca043df">pepr3d::SidePane::drawIntDragger</a></div><div class="ttdeci">bool drawIntDragger(std::string label, int &amp;value, float dragSpeed, int minValue, int maxValue, std::string displayFormat, float width)</div><div class="ttdoc">Draws an ImGui dragger (slider) for an integer value.</div><div class="ttdef"><b>Definition:</b> SidePane.h:63</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a33641b0bade39edf124bc6c23a6271a0"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a33641b0bade39edf124bc6c23a6271a0">pepr3d::SidePane::drawColorPalette</a></div><div class="ttdeci">void drawColorPalette(const std::string &amp;label=&quot;Color Palette&quot;, bool isEditable=false)</div><div class="ttdoc">Draws a color palette of the current Geometry and its ColorManager. If isEditable is true,...</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:108</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_a65b9063ac82c6249eef2c1a7586a0cfb"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#a65b9063ac82c6249eef2c1a7586a0cfb">pepr3d::SidePane::drawCheckbox</a></div><div class="ttdeci">void drawCheckbox(std::string label, bool &amp;isChecked)</div><div class="ttdoc">Draws a checkbox with a read-write reference to the current value.</div><div class="ttdef"><b>Definition:</b> SidePane.h:58</div></div>
<div class="ttc" id="classpepr3d_1_1_main_application_html"><div class="ttname"><a href="classpepr3d_1_1_main_application.html">pepr3d::MainApplication</a></div><div class="ttdoc">The main Cinder-based application, represents a window, handles events, thread pool,...</div><div class="ttdef"><b>Definition:</b> MainApplication.h:38</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html">pepr3d::SidePane</a></div><div class="ttdoc">Right side of the user interface that displays options of the currently selected tool.</div><div class="ttdef"><b>Definition:</b> SidePane.h:13</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html_ad52b2636cb54b25ed796ad8bae54a535"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html#ad52b2636cb54b25ed796ad8bae54a535">pepr3d::SidePane::drawText</a></div><div class="ttdeci">void drawText(std::string text)</div><div class="ttdoc">Draws a (multi-line) text label.</div><div class="ttdef"><b>Definition:</b> SidePane.cpp:75</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_da5c6b39c0a2f54e57df6799511cd3ab.html">ui</a></li><li class="navelem"><b>SidePane.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
